package com.tiyo.common.exception;

/**
 * 
 * @Description 业务异常
 * @author yangb
 * @version v1.0
 * @date 2021年2月5日
 *
 */
@SuppressWarnings("serial")
public class BusinessException extends RuntimeException {

	protected final String message;

	public BusinessException(String message) {
		this.message = message;
	}

	public BusinessException(String message, Throwable e) {
		super(message, e);
		this.message = message;
	}

	@Override
	public String getMessage() {
		return message;
	}
}
